<div>
    <div class="dux-box">
        <div class="box-side">
            <a class="uk-button uk-display-block uk-button-primary" href="{url('add', array('pos_id' => $posId))}">添加广告</a>
            <br>
            <div class="uk-card uk-card-small uk-card-default dux-panel">
                <div class="uk-card-header">广告位</div>
                <div class="uk-card-body">
                    <div class="dux-tree">
                        <!--if{empty($posList)}-->
                        请先添加广告位
                        <!--{/if}-->
                        <ul>
                            <!--loop{$posList as $vo}-->
                            <!--if{$posId == $vo.pos_id}-->
                            <li class="active">
                                <!--{else}-->
                            <li>
                                <!--{/if}-->
                                <h2><a href="{url('', array('pos_id' => $vo.pos_id))}">{$vo.name}[{$vo.type ? '图片' : '文字'}]</a></h2></li>
                            <!--{/loop}-->
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <div class="box-body">
            <div data-dux="table-bind"  class=" ">
                <div class="dux-page-table">
                    <!--if{!empty($list)}-->
                    <table class="uk-table  uk-table-responsive  uk-table-striped uk-table-hover uk-table-middle dux-table" data-table>
                        <thead>
                        <tr>
                            <th width="100">#</th>
                            <th>标题</th>
                            <th>开始时间</th>
                            <th>结束时间</th>
                            <th width="100">顺序</th>
                            <th class="uk-text-center">状态</th>
                            <th class="uk-text-center" width="120">管理</th>
                        </tr>
                        </thead>
                        <tbody>
                        <!--loop{$list as $vo}-->
                        <tr>
                            <td>{$vo.pos_id}</td>
                            <td>{$vo.title}</td>
                            <td>{$vo.start_time ? date('Y-m-d H:i:s', $vo.start_time) : '无'}</td>
                            <td>{$vo.stop_time ? date('Y-m-d H:i:s', $vo.stop_time) : '无'}</td>
                            <td>{$vo.sort}</td>
                            <td class="uk-text-center">
                                <!--if{$vo.status}-->
                                <span data-id="{$vo.adv_id}" data-name="status" data-url="{url('status')}" data-status="1" class="uk-text-success fa fa-circle"></span>
                                <!--{else}-->
                                <span data-id="{$vo.adv_id}" data-name="status" data-url="{url('status')}" data-status="0" class="uk-text-danger fa fa-circle"></span>
                                <!--{/if}-->
                            </td>
                            <td class="uk-text-center">
                                <a class="uk-button uk-button-primary uk-button-small" href="{url('edit', ['id'=>$vo[$pri]])}" title="编辑"><i class="fa fa-pencil"></i></a>
                                <a class="uk-button uk-button-danger uk-button-small" href="javascript:;" data-url="{url('del')}" data-id="{$vo[$pri]}" title="删除" data-del><i class=" fa fa-trash"></i></a>
                            </td>
                        </tr>
                        <!--{/loop}-->
                        </tbody>
                    </table>
                    <!--{else}-->
                    <div class="uk-card uk-card-small dux-panel">
                        <div class="uk-card-body uk-text-center">暂无添加广告</div>
                    </div>
                    <!--{/if}-->
                </div>
            </div>
        </div>
    </div>
</div>